package com.jin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jin.bean.Unit;
import com.jin.dao.UnitMapper;
import com.jin.service.UnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created on 2025/5/14.
 * @author Zhongyuan Jin
 */
@Service
public class UnitServiceImpl extends ServiceImpl<UnitMapper, Unit> implements UnitService {

    @Autowired
    private UnitMapper unitMapper;

    @Override
    public Unit getUnitByUserId(Long userId) {
        return unitMapper.getUnitByUserId(userId);
    }

}
